package com.bdy.lm.taximanager.rfid;

/**
 * Created by Administrator on 2016/9/13 0013.
 */

import android.util.Log;

public class RFIDDelegate {

    private static final String TAG = "RFIDDelegate";
    private RFIDCallback mRFIDCallback;

    // 构造
    public RFIDDelegate() {
    }

    // 设置回调类对象
    public void setCallback(RFIDCallback callback) {
        mRFIDCallback = callback;
    }

    // 处理卡ID
    public void processCardID(byte[] idArray, int idLength) {
        Log.i(TAG, "Card ID is " + TConvert.hexString(idArray, idLength));
        mRFIDCallback.processCardID(TConvert.hexString(idArray, idLength));
    }
}

